package com.ruoyi.custom.controller;

import com.ruoyi.custom.domain.ConsultingTeacher;
import com.ruoyi.custom.service.IConsultingTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/consulting")
public class ConsultingTeacherController {
    @Autowired
    private IConsultingTeacherService consultingTeacherService;
    @GetMapping
    public List<ConsultingTeacher> getAll(){
       return consultingTeacherService.getAll();
    }

}
